package fisio.model;

import java.util.Vector;

import net.sf.json.JSONObject;

public class Atendimento {
	
	private int id;
	private int id_f;
	private int id_p;
	private Vector<Prontuario> prontuarios;
	
	public Atendimento(int id, int id_f, int id_p, Vector<Prontuario> prontuarios){
		this.id = id;
		this.id_f = id_f;
		this.id_p = id_p;
		this.prontuarios = prontuarios;
	}
	
	public Atendimento(int id){
		this.id = id;
	}
	
	public Atendimento(int id_f, int id_p, Vector<Prontuario> prontuarios){
		this.id_f = id_f;
		this.id_p = id_p;
		this.prontuarios = prontuarios;
	}
	
	public JSONObject toJSON() {
		JSONObject json = new JSONObject();
		json.put("id", this.id);
		json.put("id_f", this.id_f);
		json.put("id_p", this.id_p);
		return json;
	}

	public int getId(){
		return id;
	}

	public void setId(int id){
		this.id = id;
	}

	public int getIdF(){
		return id_f;
	}

	public void setIdF(int id_f){
		this.id_f = id_f;
	}

	public int getIdP(){
		return id_p;
	}

	public void setIdP(int id_p){
		this.id_p = id_p;
	}
	
	public Vector<Prontuario> getProntuarios(){
		return prontuarios;
	}

	public void setProntuarios(Vector<Prontuario> prontuarios){
		this.prontuarios = prontuarios;
	}
}